import {
  get,
  post,
  put
} from '../utils/request.js'

//获取当前登录用户的地址列表
export const getAddress = function(params) {
  return get('/customer/useraddress', params)
}

//获取省市区
export const getChinaList = function(params) {
  return get('/china', params)
}

//保存地址
export const addAddress = function(params) {
  return post('/customer/useraddress', params)
}

//修改地址
export const updateAddress = function(params) {
  return put('/customer/useraddress', params)
}
